<h2>Sign up</h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name),:id=>"frm") do |f| %>
  <%= devise_error_messages! %>

  <%= render :partial =>'form',:locals => {:f =>f} %>

  <div><%= f.label :password %><br />
  <%= f.password_field :password,:class=>"validate[required,minSize[6]]",:id=>"password" %></div>

  <div><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation,:class=>"validate[required,equals[password]]" %></div>

  <div><%= f.submit "Register" %></div>
<% end %>

<%= render "links" %>

<script>
		jQuery(document).ready(function(){
			// binds form submission and fields to the validation engine
			jQuery("form").validationEngine('attach', {validationEventTrigger : false});
		});
</script>
